﻿// See https://aka.ms/new-console-template for more information

using A3;

var shapes = new IShape[10];
double totalArea = 0;

for (int i = 0; i < shapes.Length; i++)
{
    shapes[i] = ShapeFactory.CreateRandomShape();
    totalArea += shapes[i].CalculateArea();
}

Console.WriteLine($"Total Area of Shapes: {totalArea}");